/**
 * Copyright 2010 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

/** Alternate stylesheet for android, iphone + mobile browsers **/

body {
  font-family: Arial, sans-serif;
  font-size: 10pt;
}

a img input {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

#logo {
  background-image: url(../images/logo_small.png);
  float: left;
  height: 43px;
  margin: 6px 10px;
  width: 77px;
}

.feed {
  position: absolute;
  background: #b5b9c2;
  margin: 0;
  width: 100%;
  overflow: auto;
}

.feed .item {
  overflow: hidden;
  padding: 7px 7px 10px 7px;
  border-bottom: 1px solid #999;
  background: white;
  position: relative;
  cursor: pointer;
}

.feed .read {
  background: #eaeaea !important;
}

.feed .item img.icon {
  float: left;
  padding-right: 6px;
  padding-left: 6px;
}

.feed .item .title {
  -moz-border-radius: 5px;
  border-radius: 5px;
  background: #C9E2FC;
  font-weight: bold;
  padding: 2px 6px;
}

.feed .item .time {
  color: #9a9a9a;
  float: right;
  text-align: right;
  font-weight: bold;
  font-size: 75%;
  padding: 4px 6px 0px 0px;
}

.read > .time {
  color: #999;
}

.feed .item .avatar {
  border: 3px solid #ccc;
  border-radius: 3px 3px;
  -moz-border-radius: 3px 3px;
  float: left;
  margin: 0 5px 2px 0;
}

.avatar img {
  width: 32px;
  height: 32px;
  border: 1px solid #fff;
}

.messages {
  border-radius: 3px 3px;
  -moz-border-radius: 3px 3px;
  background: #bdbdbd;
  color: #fff;
  font-size: 70%;
  font-weight: bold;
  margin: 3px 3px 3px 0px;
  padding: 2px 4px 0px 4px;
  float:right;
}

/** wave **/

#conversation {
  padding: 24px 6px06px 6px;
}

#conversation .blip {
  position: relative;
  right: 0;
  overflow: hidden;
  padding: 8px 0;
  margin-top: -8px;
}

#conversation .blip:first-child {
  border: none;
}

#conversation .blip div.left {
  width: 95%;
}

#conversation .blip .authorbar {
  float: left;
  margin: 10px 5px 0px 3px;

  background: #e5e5e5;

  padding: 3px 4px;
  -webkit-border-top-right-radius: 4px;
  -webkit-border-top-left-radius: 4px;
  -moz-border-radius-bottomleft: 4px;
  -moz-border-radius-topleft: 4px;
}

#conversation .blip .author {
  float: right;
  padding: 2px 6px;

  font-weight: bold;
  text-shadow: -1px -1px 1px #555;
  color: white;
}

#conversation .blip .author {
  width: 100%;
}

#conversation .blip .author img {
  float: left;
  height: 32px;
  width: 32px;
}

#conversation .blip .author .name {
  float: right;
}

.author-more {
  float: right;
  clear: both;
}

.author-count-1 {
  min-height: 24px;
}

.author-count-2 {
  min-height: 45px;
}

.author-count-3 {
  min-height: 136px;
}

.author-count-many {
  min-height: 55px;
}

#conversation .blip div.left .toolbar {
  display: none;
  position: absolute;
  margin: 16px 12px 0 0;
  padding: 2px 4px 0 4px;
  right: 0;

  background: #fff;
  -webkit-border-radius: 4px;
  -webkit-box-shadow: 2px 2px 4px #111;
  -moz-border-radius: 4px;
  -moz-box-shadow: 2px 2px 4px #111;
}

.indent {
  padding-left: 40px;
}

.unread {
  background: #7aa2f2 !important;
  color: #eee !important;
}

#conversation .blip div.right {
  float: left;
  width: 95%;
  padding: 12px 12px 24px 12px;
  margin: 0 auto;

  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;

  -webkit-box-shadow: 2px 2px 8px #000;
  -moz-box-shadow: 2px 2px 8px #000;
  background: white;
}

#conversation .blip div.right .time {
  float: right;
  font-size: 94%;
  color: #999;
}

div.wave-window {
  right: 0;
  overflow: auto;
  width: 100%;
  height: 100%;
  /*margin: 2px 0; *//** TODO:gradient for moz/IE **/
  background-image: url('../images/background_dot.png');
}

.header {
  background-color: #dfe3eb;

  padding: 16px 12px 16px 24px;
  margin: 0 auto;

  -webkit-box-shadow: 2px 2px 8px #000;
  -moz-box-shadow: 2px 2px 8px #000;
}

/** markup in text**/
span.title {
  font-weight: bold;
}

.avatar img {
  width: 32px;
  height: 32px;
}

.avatar .name {
  margin: 0 5px;
}

.mobile-button a {
  float: left;
  margin: 22px 7px 0 0;
  border: 1px solid #191919;
  border-radius: 3px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  color: #ffffff;
  white-space: nowrap;
  text-decoration: none;
}

.mobile-button a span {
  display: block;
  height: 23px;
  border-top: 1px solid #7f7f7f;
  border-left: 1px solid #7f7f7f;
  border-radius: 3px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  padding: 0 7px 0 7px;
  background-color: #333333;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#666666), to(#333333));
  background-image: -moz-linear-gradient(top, #666666, #333333);
  line-height: 24px;
}

.more-button {
  margin: 8px auto;
  width: 100px;

  color: #333;
  padding: 4px 14px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;

  background: #EDEDED;
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #FFF),
  color-stop(0.7, #FEFEFE), color-stop(1.0, #EDEDED));
}

/** TODO(dhanji): Clean this up later when we reconcile stuff and main.css for all clients **/
#search-container {
  background-color: #202020;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#4c4c4c), to(#191919));
  background-image: -moz-linear-gradient(top, #4c4c4c, #191919);
  -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.35);
  -moz-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.35);
}

#search {
  width: 200px;
}

#headerSearch {
  display: none;
  margin: -15px auto 0px;
  padding: 10px 0px !important;
  width: 200px;
}

#tdSearchToggle {
  text-align: center;
}

#td-logout {
  padding: 10px 0px 0px 0px;
  text-align: right;
}

#td-logout .mobile-button {
float:right;
}

#logout {
  color: #fff;
  text-decoration: none;
}

#logout span {
  background-color: #111111;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#333333), to(#111111));
  background-image: -moz-linear-gradient(top, #333333, #111111);
}


#loading-wrapper {
  position: relative;
  text-align: center;
}

#feed-loading, #wave-loading {
  margin: 30px auto 0px auto;
  text-align: center;
}
